using System;
using System.Collections.Generic;
using Zero.Data;

namespace Zero.Entity.Models
{
    public class Sys_Menu : BaseEntity
    {
        public Sys_Menu()
        {
            this.Sys_Buttons = new List<Sys_Button>();
            this.ChildMenus = new List<Sys_Menu>();
        }

        public string MenuID { get; set; }
        public string MenuNo { get; set; }
        public string MenuParentID { get; set; }

        
        public string MenuName { get; set; }
        public string MenuUrl { get; set; }
        public string MenuIcon { get; set; }
        public Nullable<bool> IsExternal { get; set; }
        public Nullable<bool> IsLeaf { get; set; }
        public virtual Sys_Menu Parent { get; set; }
        public virtual ICollection<Sys_Menu> ChildMenus { get; set; }
        public virtual ICollection<Sys_Button> Sys_Buttons { get; set; }
    }
}
